home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Thread Manager / Thread Manager 2.1.1d1+ / ThreadedSort / Sprocket / Lib / PrintingUtils.cp < prev    next >
Encoding:
Text File  |  1995-04-28  |  902 b   |  48 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        PrintingUtils.cp
  3.  
  4.     Contains:    Useful printing utilities
  5.  
  6.     Written by: Dave Falkenburg, based on code from Dave Hershey
  7.  
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.      
  12.          <2>     9/27/94    DRF         AppLib.h is now Sprocket.h
  13.          <1>      9/8/94    DRF        first checked in
  14.  */
  15.  
  16. #include "Sprocket.h"
  17.  
  18. #if    qUseQuickDrawGX
  19.  
  20. #include <graphics macintosh.h>
  21. #include <graphics routines.h>
  22. #include <PrintingManager.h>
  23.  
  24.  
  25. //    PrintingEventOverride is our generic event handler for QuickDrawGX.
  26. //    It alows us to handle events while the QuickDrawGX movable modal
  27. //    printing dialogs are displayed.
  28.  
  29. OSErr
  30. PrintingEventOverrideForGX(EventRecord *anEvent, Boolean filterEvent)
  31.     {
  32.     if (!filterEvent)
  33.         switch (anEvent->what)
  34.             {
  35.             case mouseDown:
  36.             case keyDown:
  37.             case autoKey:
  38.                 break;
  39.  
  40.             default:
  41.                 HandleEvent(anEvent);
  42.             }
  43.  
  44.     return noErr;
  45.     }
  46.  
  47. #endif
  48.